package com.hand.demo.domain.entity;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import javax.validation.constraints.NotBlank;
import io.choerodon.mybatis.domain.AuditDomain;
import java.util.Date;
import org.hzero.mybatis.annotation.Unique;
import io.choerodon.mybatis.annotation.ModifyAudit;
import io.choerodon.mybatis.annotation.VersionAudit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 
 *
 * @author xiuhong.chen@hand-china.com 2023-09-24 21:11:43
 */
@ApiModel("")
@VersionAudit
@ModifyAudit
@Table(name = "yyf_example")
public class YyfExample extends AuditDomain {

    public static final String FIELD_NOTICE_ID = "noticeId";
    public static final String FIELD_ORIGIN_HOST = "originHost";
    public static final String FIELD_NOTICE_TOPIC = "noticeTopic";
    public static final String FIELD_ORIGIN_PORT = "originPort";
    public static final String FIELD_ORIGIN_SERVICE_NAME = "originServiceName";
    public static final String FIELD_NOTICE_CONTENT = "noticeContent";
    public static final String FIELD_SEND_DATE_TIME = "sendDateTime";
    public static final String FIELD_RECEIVER_COUNT = "receiverCount";
    public static final String FIELD_SEND_STATUS = "sendStatus";
    public static final String FIELD_RETRYABLE_FLAG = "retryableFlag";
    public static final String YYF_EXAMPLE_U1 = "yyf_example_u1";

    //
    // 业务方法(按public protected private顺序排列)
    // ------------------------------------------------------------------------------

    //
    // 数据库字段
    // ------------------------------------------------------------------------------


    @ApiModelProperty("")
    @Id
    @GeneratedValue
    @Unique(YYF_EXAMPLE_U1)
    private Long noticeId;
    @ApiModelProperty(value = "", required = true)
    @NotBlank
    private String originHost;
    @ApiModelProperty(value = "", required = true)
    @NotBlank
    private String noticeTopic;
    @ApiModelProperty(value = "", required = true)
    @NotNull
    private Long originPort;
    @ApiModelProperty(value = "", required = true)
    @NotBlank
    private String originServiceName;
    @ApiModelProperty(value = "", required = true)
    @NotBlank
    private String noticeContent;
    @ApiModelProperty(value = "", required = true)
    @NotNull
    private Date sendDateTime;
    @ApiModelProperty(value = "", required = true)
    @NotNull
    private Long receiverCount;
    @ApiModelProperty(value = "", required = true)
    @NotBlank
    private String sendStatus;
    @ApiModelProperty(value = "", required = true)
    @NotNull
    private Integer retryableFlag;

	//
    // 非数据库字段
    // ------------------------------------------------------------------------------
    //
    // getter/setter
    // ------------------------------------------------------------------------------

    /**
     * @return 
     */
	public Long getNoticeId() {
		return noticeId;
	}

	public void setNoticeId(Long noticeId) {
		this.noticeId = noticeId;
	}
    /**
     * @return 
     */
	public String getOriginHost() {
		return originHost;
	}

	public void setOriginHost(String originHost) {
		this.originHost = originHost;
	}
    /**
     * @return 
     */
	public String getNoticeTopic() {
		return noticeTopic;
	}

	public void setNoticeTopic(String noticeTopic) {
		this.noticeTopic = noticeTopic;
	}
    /**
     * @return 
     */
	public Long getOriginPort() {
		return originPort;
	}

	public void setOriginPort(Long originPort) {
		this.originPort = originPort;
	}
    /**
     * @return 
     */
	public String getOriginServiceName() {
		return originServiceName;
	}

	public void setOriginServiceName(String originServiceName) {
		this.originServiceName = originServiceName;
	}
    /**
     * @return 
     */
	public String getNoticeContent() {
		return noticeContent;
	}

	public void setNoticeContent(String noticeContent) {
		this.noticeContent = noticeContent;
	}
    /**
     * @return 
     */
	public Date getSendDateTime() {
		return sendDateTime;
	}

	public void setSendDateTime(Date sendDateTime) {
		this.sendDateTime = sendDateTime;
	}
    /**
     * @return 
     */
	public Long getReceiverCount() {
		return receiverCount;
	}

	public void setReceiverCount(Long receiverCount) {
		this.receiverCount = receiverCount;
	}
    /**
     * @return 
     */
	public String getSendStatus() {
		return sendStatus;
	}

	public void setSendStatus(String sendStatus) {
		this.sendStatus = sendStatus;
	}
    /**
     * @return 
     */
	public Integer getRetryableFlag() {
		return retryableFlag;
	}

	public void setRetryableFlag(Integer retryableFlag) {
		this.retryableFlag = retryableFlag;
	}

}

